package util

import (
	"strconv"
	"strings"
)

//分割字符串并返回int32数组
func SplitToInt(origin, split string) (r []int32) {
	r = make([]int32, 0)
	s := strings.Split(origin, split)
	for _, v := range s {
		n, e := strconv.Atoi(v)
		if e != nil {
			continue
		}
		r = append(r, int32(n))
	}
	return
}
